package com.tianshuo.transcation.service;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Component
public class TransactionServiceB {




    @Transactional(propagation = Propagation.NOT_SUPPORTED)
    public void b() {
//        int a = 1/0;

        int a = 1+1;
        System.out.println(a);

//        throw  new RuntimeException("11");
    }


}
